#pragma once

#include "TreeDirectoryT.h"

// CExplorerTreeCtrl

class CExplorerTreeCtrl 
	: public CTreeCtrl
	, public CTreeDirectoryImplT<CExplorerTreeCtrl>
{
	DECLARE_DYNAMIC(CExplorerTreeCtrl)

public:
	CExplorerTreeCtrl();
	virtual ~CExplorerTreeCtrl();

public:
	CTreeCtrl& GetTreeCtrl();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnTvnGetdispinfo(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnTvnItemexpanding(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult);
protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
public:
	afx_msg void OnTvnDeleteitem(NMHDR *pNMHDR, LRESULT *pResult);
};


